package cn.itcast.gateway.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 虎哥
 */
@RestController
public class FallbackController {

    @RequestMapping("fallbackTest")
    public Map<String, Object> defaultFallback(){
        Map<String, Object> msg = new HashMap<>();
        msg.put("msg", "请求超时！");
        msg.put("status", 502);
        return msg;
    }
}
